
package top.burning.confidant.enums;

import top.burning.confidant.util.BaseEnum;

/**
 * 〈一句话功能简述〉<br>
 * 〈〉
 *
 * @author tell
 * @create 2018/8/5
 * @since 1.0.0
 */
public enum MsgEnum implements BaseEnum {

    SUCCESS(0, "success"),
    SERVER_EXCEPTION(500100, "服务端异常"),
    PARAMETER_ISNULL(500101, "输入参数为空"),
    USER_NOT_EXSIST(500102, "用户不存在"),
    ONLINE_USER_OVER(500103, "在线用户数超出允许登录的最大用户限制。"),
    SESSION_NOT_EXSIST(500104, "不存在离 线session数据"),
    NOT_FIND_DATA(500105, "查找不到对应数据");
    private Integer code;
    private String desc;

    MsgEnum(int code, String decs) {
        this.code = code;
        this.desc = decs;
    }


    public Object code() {
        return null;
    }


    public Object desc() {
        return null;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
